package elsa.tools;

public class UploadResp {

    public int code;
    public String msg;
    public Data data;

    public static UploadResp render(int code, String msg, String url, String filename){
        UploadResp uploadResp = new UploadResp();
        uploadResp.code = code;
        uploadResp.msg = msg;
        Data data = new Data();
        data.setUrl(url);
        data.setFilename(filename);
        uploadResp.data = data;
        return uploadResp;
    }

    static class Data {
        private String url;
        private String filename;

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }

        public String getFilename() {
            return filename;
        }

        public void setFilename(String filename) {
            this.filename = filename;
        }
    }
}
